import plugin from '../../lib/plugins/plugin.js'
import {
    segment
}
    from 'oicq'
import fetch from "node-fetch";

let url = ""

export class tokidokiCos extends plugin {
    constructor() {
        super({
            /** 功能名称 */
            name: 'cos',
            /** 功能描述 */
            dsc: '',
            event: 'message',
            priority: 1145,
            rule: [
                {
                    reg: "^#*图2(.*)$",
                    fnc: 'cos'
                }
            ]

        })
    }

    async cos(e) {
        url = "https://api.sdgou.cc/api/cos";
        await e.reply(segment.image(url));
    }

}